package com.xja.webchat.service;

import com.xja.webchat.entity.Chatuser;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface ChatUserService {

   Chatuser selectUserById(Integer id)throws Exception;

   Chatuser selectChatuserByuserid(String userid)throws Exception;

   void addChatuser(Chatuser chatuser) throws   Exception;

   void updateById(Chatuser chatuser);

   //查找好友
   List<Chatuser> chazhaohaoyou(String keyword)throws Exception;


   //发送给登录用户的用户和未读个数
   List<Chatuser> selectUserAndWdgs(Integer id)throws Exception;

}
